﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;

namespace TeamReview.DataModels
{
   public class DirectionsFormModel : IDataErrorInfo

    {
        private event PropertyChangedEventHandler PropertyChanged;
        private string _reason;
        public string Reason
        {
            get
            {
                return _reason;
            }
            set
            {
                _reason = value;
                this.NotifyPropertyChanged();
            }
        }


        public string Error
        {
            get { return null; }
        }

        public string this[string columnName]
        {
            get
            {
                string sResult = string.Empty;
                return sResult;
            }
        }
        protected void NotifyPropertyChanged([CallerMemberName]string propertyName="")
        {
            if (this.PropertyChanged != null)
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
